<!DOCTYPE html>
  <head>
    <title>jsonP</title>
    <link rel="icon" type="image/x-icon" href="./assets/favicon.ico" />
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    

  </head>
  
  <body></body>

  <script>

    setTimeout(function(){
      var scrpit =  document.createElement("script");
          scrpit.src="./test.js?callback=person";
          document.body.append(scrpit);
          window.person = function(data){
            console.log(data);
            window.person = null;
          }
    }, 2000)
    
  </script>


</html>